"""
练习：将两个列表合并为一个字典

"""
list_student_name = ["悟空", "八戒", "白骨精"]
list_student_age = [28, 25, 36]

# 方式一：
dict_new = {}
for key,value in zip(list_student_name, list_student_age):
   dict_new[key] = value

print(dict_new)

print('-' * 30)
# 方式二： 字典推导式
dict_new2 = {key:value for key,value in zip(list_student_name, list_student_age)}
print(dict_new2)